package com.beagle.njddapp.core;


import com.beagle.njddapp.base.ApiService;
import com.beagle.njddapp.base.RetrofitHttp;
import com.beagle.njddapp.bean.UserInfoBean;
import com.beagle.njddapp.net.BaseHttpResponse;
import com.beagle.njddapp.net.BaseStringResponseBean;
import com.beagle.njddapp.net.HttpResponseObserver;
import com.beagle.njddapp.net.RxSchedulers;

import com.google.gson.Gson;

import java.util.HashMap;

import okhttp3.RequestBody;

/**
 * @author hxx
 * @date 2021-03-18 16:38
 */
public class UserApi {

    public static void reFreshToken(){
//        ApiService apiService = RetrofitHttp.provideRetrofit().create(ApiService.class);
//        Gson gson=new Gson();
//        HashMap<String,String> paramsMap=new HashMap<>();
//        paramsMap.put("type", "");
//        String strEntity = gson.toJson(paramsMap);
//        RequestBody body =RequestBody.create(okhttp3.MediaType.parse("application/json;charset=UTF-8"),strEntity);
//        apiService.requestFormToken(body).compose(RxSchedulers.compose()).safeSubscribe(new Obs<BaseStringResponseBean>() {
//            @Override
//            public void success(BaseStringResponseBean baseStringResponseBean) {
//
//            }
//
//            @Override
//            public void error(int code, String message) {
//
//            }
//        });
    }
}
